home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Graphics⁄Sound / Fudd Source / Fudd ƒ / Fudd code ƒ / program globals.h < prev   
Text File  |  1994-02-06  |  2KB  |  68 lines

  1. /**********************************************************************\
  2.  
  3. File:        program globals.h
  4.  
  5. Purpose:    This is the header file containing all Fudd-specific
  6.             globals, enums, #defines, and structs.
  7.  
  8.  
  9. Fudd -=- convert text to Elmer Fudd talk
  10. Copyright ©1994, Mark Pilgrim
  11.  
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16.  
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. GNU General Public License for more details.
  21.  
  22. You should have received a copy of the GNU General Public License
  23. along with this program in a file named "GNU General Public License".
  24. If not, write to the Free Software Foundation, 675 Mass Ave,
  25. Cambridge, MA 02139, USA.
  26.  
  27. \**********************************************************************/
  28.  
  29. enum
  30. {
  31.     allsWell=0,
  32.     kNoMemory,
  33.     kCantOpenInputFile,
  34.     kCantCreateTempFile,
  35.     kCantOpenTempFile,
  36.     kCantReadInputFile,
  37.     kCantWriteTempFile
  38. };
  39.  
  40. #define CREATOR            'FuDd'
  41. #define APPLICATION_NAME "\pFudd"
  42. #define    SAVE_TYPE        'TEXT'
  43.  
  44. #define INPUT_BUFFER_MAX 10240
  45. #define OUTPUT_BUFFER_MAX 10240
  46.  
  47. #define showThatTharProgress ((gShowProgress) && (gInputLength>INPUT_BUFFER_MAX) && (gInProgress))
  48.  
  49. extern    FSSpec            inputFS;
  50. extern    FSSpec            outputFS;
  51. extern    FSSpec            tempFS;
  52. extern    Boolean            deleteTheThing;
  53. extern    int                inputRefNum;
  54. extern    int                outputRefNum;
  55. extern    unsigned long    gInputOffset;
  56. extern    unsigned long    gOutputOffset;
  57. extern    Ptr                gInputBuffer;
  58. extern    Ptr                gOutputBuffer;
  59. extern    Boolean            gInputNeedsUpdate;
  60. extern    Boolean            gOutputNeedsUpdate;
  61. extern    unsigned long    gAbsoluteOffset;
  62. extern    unsigned long    gInputLength;
  63. extern    unsigned long    gWhatsReallyInInputBuffer;
  64.  
  65. extern    unsigned char    gShowSaveDialog;
  66. extern    unsigned char    gAddSuffix;
  67. extern    unsigned char    gShowProgress;
  68.